<form action="{:request()->url()}" method="post" class="xn_ajax">
    <!--增加配置项需要加对应的名称-->
    <input type="hidden" name="type" value="login" />
    <div class="layui-row">
        <div class="layui-col-xs6">
            <div class="layui-form" wid100="" lay-filter="">
                <div class="layui-form-item">
                    <label class="layui-form-label">注册账号类型</label>
                    <div class="layui-input-block">
                        <input type="radio" name="account_type" value="mobile" title="手机号码" {if condition="$data['login']['account_type'] eq 'mobile'"}checked{/if}>
                        <input type="radio" name="account_type" value="email" title="邮箱地址" {if condition="$data['login']['account_type'] eq 'email'"}checked{/if}>
                        <input type="radio" name="account_type" value="username" title="任意输入" {if condition="$data['login']['account_type'] eq 'username'"}checked{/if}>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">注册短信验证</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="ver_mobile" value="1" {if condition="$data['login']['ver_mobile'] eq 1"} checked{/if} lay-skin="switch" lay-text="验证|不验证">
                    </div>
                    <div class="layui-form-mid layui-word-aux">注册账号类型为手机号码时生效</div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">登录图形验证码</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="show_captcha" value="1" {if condition="$data['login']['show_captcha'] eq 1"} checked{/if} lay-skin="switch" lay-text="开启|关闭">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="set_website">确认保存</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>